/*
 * Public Credit Information Sharing Platform(PCISP).
 * Copyright (c) 2019-2020 jsxzkingdee and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * Please visit https://www.zhengxinsoft.com if you need additional information or have any questions.
 */

package com.platform.enums;

import com.platform.comm.enums.IEnum;

import java.util.Objects;

/**
 * Description: 布局方式
 *
 * @author libin created on 2020/5/23.
 */
public enum EvalReportLayoutType implements IEnum<String> {

    /**
     * 布局
     */
    FORM("横版"), LIST("竖版");

    private final String text;

    EvalReportLayoutType(String text) {
        this.text = text;
    }

    @Override
    public String getKey() {
        return name();
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public boolean is(String key) {
        if (Objects.isNull(key)) {
            return false;
        }
        return name().equals(key);
    }
}
